import request from '@/utils/request'

// 查询出差文件列表
export function listTravelFile(query) {
  return request({
    url: '/Travel/TravelFile/list',
    method: 'get',
    params: query
  })
}

// 查询出差文件详细
export function getTravelFile(fileId) {
  return request({
    url: '/Travel/TravelFile/' + fileId,
    method: 'get'
  })
}

// 新增出差文件
export function addTravelFile(data) {
  return request({
    url: '/Travel/TravelFile',
    method: 'post',
    data: data
  })
}

// 修改出差文件
export function updateTravelFile(data) {
  return request({
    url: '/Travel/TravelFile',
    method: 'put',
    data: data
  })
}

// 删除出差文件
export function delTravelFile(fileId) {
  return request({
    url: '/Travel/TravelFile/' + fileId,
    method: 'delete'
  })
}
